<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/"
          xmlns:xi="http://www.w3.org/2001/XInclude" lang="en">
        <!-- Simple genshi template for walking the leonardo file system -->

         <!--! This is the site layout -->
        <xi:include href="page.html" />
        <xi:include href="directory.html"/>
        
        <head>
        <!-- We'll be using the javascript helpers later, so let's make sure we have them -->
        ${Markup(h.javascript_include_tag(builtins=True))}
        </head>
        <body>
            <div class="mainPage">
               <div py:for="e in c.aggregations">
                    <?python
                    nc,nt=e['nComments'],e['nTrackbacks']
                    annotxt=''
                    if nc!=0 or nt!=0: annotxt='%s comments, %s trackbacks : '%(nc,nt) 
                    ?>
                    
                    <h2>${e['title']}</h2>
                    ${Markup(e['content'])}
                    <p class="blog_date">${e['author']} : ${e['time']} : $annotxt
                     (<a href="${e['url']}">permalink</a>) <span py:replace="categories(e['categories'],':')"/></p>
                </div>
            </div>
        </body>
    </html>
